﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using xycn.IDbService;

namespace xycn.DbService
{
    /// <summary>
    /// 
    /// </summary>
    public class SugarServiceFactory : IPluginFactory.IPluginFactory
    {
        /// <summary>
        /// 创建IDbService对象接口
        /// </summary>
        /// <returns></returns>
        public override IDbService.IDbService CreatePlugin()
        {
            SugarService sugarService = new SugarService(
                base.pluginConfig.Element("ConnString").Value,
                pluginConfig.Element("DataBaseType").Value);

            return sugarService;
        }
    }
}
